/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.breeze.dao;

import com.breeze.entity.Tcategory;
import java.util.List;

/**
 *
 * @author huateng
 */
public class CategoryDao extends BaseDao{
    
    private final String query_category="tcategory.selectByPage";
    private final String update_category="tcategory.updateRecords";
    private final String insert_category="tcategory.insertObject";
    private final String delete_category="tcategory.deleteByCondition";
    private final String query_count="tcategory.selectCount";
    
    public int deletecategory(Tcategory category){
        return delete(delete_category, category);
    }
    
    public Tcategory queryForcategory(Tcategory category){
        return (Tcategory)queryForObject(query_category, category);
    }
    
    public List queryForcategoryList(Tcategory category){
        return queryForList(query_category, category);
    }
    
    public int updatecategory(Tcategory category){
        return update(update_category, category);
    }
    
    public Tcategory inserTcategory(Tcategory category){
        return (Tcategory)insert(insert_category, category);
    }
    
    public long queryCount(Tcategory category){
        return (Long)queryForObject(query_count, category);
    }
}
